function [ output ] = m2r( matrix )

[rows, columns] = size(matrix);

    for i=1:rows
               for j=1:columns
                   output(1,(i-1)*columns+j)= matrix (i,j);
               end
    end
end